﻿using Avalonia;
using Avalonia.Controls;
using Avalonia.Input;
using Avalonia.Interactivity;
using Avalonia.Media;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using System.Threading.Tasks;

namespace FantomNext.Controls
{
    public class FantomCanvas : Canvas
    {
        protected override void OnInitialized()
        {
            base.OnInitialized();

            var transforms = new Transforms();
            transforms.AddRange([new ScaleTransform(1, 1), new TranslateTransform(0, 0)]);
            RenderTransform = new TransformGroup()
            {
                Children = transforms
            };

            RenderTransformOrigin = RelativePoint.TopLeft;
            Background = null;
        }


    }
}
